import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 流程列表-分页查询
export function list(params){
  return axios({
    url: assessCheckApi.list,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
// 发起会议室申请流程
export function initBzFlow(data){
  return axios({
    url: assessCheckApi.initBzFlow,
    method:'post',
    data:{...data},
    url_2:'outside',
  })
}
// 查询当前流程任务详情-通过当前流程任务id
export function queryJobByJobId(params){
  return axios({
    url: assessCheckApi.queryJobByJobId,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
// 查询会议室是否可用
export function hysSfky(data){
  return axios({
    url: assessCheckApi.hysSfky,
    method:'post',
    data:{...data},
    url_2:'outside',
  })
}
// 删除会议室申请流程
export function deleteHysglFlowJob(params){
  return axios({
    url: assessCheckApi.deleteHysglFlowJob,
    method:'delete' ,
    params:{...params},
    url_2:'outside',
  })
}
// 会议室申请保存接口
export function saveFlow(data){
  return axios({
    url: assessCheckApi.saveFlow,
    method:'post',
    data:{...data},
    url_2:'outside',
  })
}
// 会议室申请提交接口
export function submitFlow(data){
  return axios({
    url: assessCheckApi.submitFlow,
    method:'post',
    data:{...data},
    url_2:'outside',
  })
}
// 通过当前流程id-退回第一步
export function returnStart(params){
  return axios({
    url: assessCheckApi.returnStart,
    method:'get' ,
    params:{...params},
    url_2:'outside',
  })
}
// 流程监控-分页查询
export function flowJkPage(params){
  return axios({
    url: assessCheckApi.flowJkPage,
    method:'get' ,
    params:{...params},
    url_2:'outside',
  })
}
// 数据修订-编辑
export function editFuntion(data){
  return axios({
    url: assessCheckApi.editFuntion,
    method:'put' ,
    data:{...data},
    url_2:'outside',
  })
}
// 获取已办列表-通过当前流程id-自定义退回
export function queryAllYbJob(params){
  return axios({
    url: assessCheckApi.queryAllYbJob,
    method:'get' ,
    params:{...params},
    url_2:'outside',
  })
}
// 自定义-退回环节
export function returnUpperzdyFlowJob(data){
  return axios({
    url: assessCheckApi.returnUpperzdyFlowJob,
    method:'post' ,
    data:data,
    url_2:'outside',
  })
}
// 下载个人签名
export function downMyQm(params){
  return axios({
    url: assessCheckApi.downMyQm,
    method:'get' ,
    params:{...params},
    url_1:'outside',
    responseType: 'arraybuffer'
  })
}
// 下载个人签名
export function getMoreUserSignLinkList(params){
    return axios({
        url: assessCheckApi.getMoreUserSignLinkList,
        method:'get' ,
        params:{...params},
        url_1:'outside',
        // responseType: 'arraybuffer',
    })
}

//
export function pidgetlchj(params){
    return axios({
        url: assessCheckApi.pidgetlchj,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
